package com.scs.application.modules.wm.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

/**
 */
@Data
@Accessors(chain = true)
public class OrthWiDTO {

    //    入库单流水号
    @NotBlank(message = "入库单流水号不能为空")
    private String oipWiSn;

    //    骨科跟台包编码（唯一标识，源于orth_package_main视图）
    @NotBlank(message = "跟台包代码不能为空")
    private String packageCode;

    //    入库总数
    @Min(message = "入库总数不能小于0", value = 0)
    private Double totalQty;

    //    送货批次
    private String batch;

    @Size(min = 1, message = "明细参数至少有一条")
    @Valid
    private List<OrthWiItemDTO> items;
}
